<!doctype html>
<html>
<head>
<#assign title = show.showName + ": " + show.episodeName>
<#assign fblikeUrl = "www.wontube.com/video/play/episode/" + ": " + show.id> 
<title>Watch and download ${title}> for Free|WonTube.com</title>
<#include "/include/meta.html">
<meta name="description" content="${(show.introduction)?replace("\"", "&quot;")}"/>
<meta name="keywords" content="Wontube,Video,Music"/>
<#include "/include/css.html">
</head>

<body>
<input type="hidden" id="id" value="${show.id}" />
<input type="hidden" id="htitle" value="${show.episodeName}"/>
<input type="hidden" id="website" value="${show.website}"/>
<input type="hidden" id="itemUrl" value="${show.url}"/>
<!-- #BeginLibraryItem "/static/library/header.lbi" -->
<#include "/include/header.ftl">
<!-- #EndLibraryItem --><!--header end-->
<!-- #BeginLibraryItem "/static/library/side.lbi" -->
<#include "/video/tv/tv_side.ftl">
<!-- #EndLibraryItem --><!--side end-->
<div id="main">
	<div id="m_info_column">
    	<div class="m_view_column">
        	<a href="javascript:window.history.back()" class="btn_back" title="Back">Back</a>
        	<h2 class="movies_name"><img src="${show.thumbnail}" height="30" />${show.part} - ${show.episodeName}
        		<a id="displayEpisode" href="javascript:" class="xl_btn">Season ${show.season}</a>
			</h2>
        	<div class="btn_box">
        		<div class="fb_like"><#include "/macro/fblike.ftl"><@fblike fblikeUrl /></div>
        		<a href="javascript:;" itemUrl="${show.url!''}"  website="${show.website}" itemTitle="${show.episodeName!''}" class="btn_down2 download_btn">Download</a>
        	</div>
        </div>
    </div>
	<#if seasons??>	
	<div id="episodeDetail" class="tv_xl" style="display:none;">
		<#list seasons as season>
			<div id="season${season_index}" class="tv_sList" style="display:<#if season.seasonNum==show.season>block<#else>none</#if>">
				<div class="tv_ss">
					<#if season_index-1 &lt; 0>
						<span id="forward" href="javascript:" divId="season<#if season_index-2 &lt; 0>0<#else>${season_index-1}</#if>" class="season_p">&lt;</span>
					<#else>
						<a id="forward" href="javascript:" divId="season<#if season_index-2 &lt; 0>0<#else>${season_index-1}</#if>" class="season_p">&lt;</a>
					</#if>
	                <strong>Season ${season.seasonNum}</strong>
	                <#if season_index+2 &gt; seasons?size>
	                	<span id="backward" href="javascript:" divId="season<#if season_index+2 &gt; seasons?size>${seasons?size-1}<#else>${season_index+1}</#if>" class="season_n">&gt;</span>
	                <#else>
	                	<a id="backward" href="javascript:" divId="season<#if season_index+2 &gt; seasons?size>${seasons?size-1}<#else>${season_index+1}</#if>" class="season_n">&gt;</a>
	                </#if>
	            </div>
				<ul>
					<#assign eps = season.episodes>
					<#list eps?reverse as ep>
						<li <#if show.season==ep.season&&ep.part==show.part>class="curr"</#if>><a href="${contextPath}/tv/full-length/watch-${ep.id}" itemUrl="${ep.url}" title="${ep.showName}-${ep.episodeName}">${ep.part}</a></li>
					</#list>
				</ul>
				<div class="clear"></div>
			</div>
		</#list>
	</div>
	</#if>
    <div id="view_cont"> 
    	<span class="mp_top"></span>  
    	
    	<div id="main_play">
    		<div href="${show.url}" style="" class="mp_box oembed"></div>
    	</div>
    	
   	    <div id="view_other">
	    	<div class="m_column">
				<h3 class="m_title"><a href="${contextPath}/tv/full-length/">Popular <span>TV</span></a></h3>
				<a href="${contextPath}/tv/full-length/" class="btn">More</a>
			</div>
			<div class="m_cont" id="other_video"><#include "/pie/loading.ftl"></div>
			<br/>
			<div class="m_column">
			   	<h3 class="m_title">Comments</h3>
			</div>
			<div>
			<div class="fb-comments" id="fb-comments" data-href="" data-num-posts="5" data-width="980"></div>   
			</div>
	    </div>
    
    <#--><iframe id="play_iframe" src="${show.url}" width="100%" align="center" scrolling="no" height="1350" frameborder="0"></iframe>-->
    </div>

</div>
<!--main end-->
<!-- #BeginLibraryItem "/static/library/footer.lbi" -->
<#include "/include/footer.ftl">
<#include "/video/pie/vdownloader.ftl">
<!-- #EndLibraryItem --><!--footer end-->
<#include "/include/js.html">
<script type="text/javascript" src="${jsRoot}/video/tv/tv_show_play.js?${version}"></script>
<script type="text/javascript" src="${jsRoot}/video/download.js?${version}"></script>
</body>
</html>


<#-->
<!doctype html>
<html>
<head>
<#assign title = show.showName + ": " + show.episodeName>
<title>Watch and download ${title}> for Free|WonTube.com</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="description" content="${(show.introduction)?replace("\"", "&quot;")}"/>
<meta name="keywords" content="Wontube,Video,Music"/>
<#include "/include/css_new.html">
</head>
<body>
	<#include "/macro/utils.ftl">
	<#include "/include/header_video.ftl">
	<#assign durl = contextPath + "/video/tv/episode/" + show.id>
	<#assign fblikeUrl = "http://www.wontube.com/video/play/episode/" + show.id>
	<#assign thumbnail = show.thumbnail>
	<#assign duration = show.duration>
	<#include "/video/play/play_info.ftl">
	
	<div id="main_play_y">		
		<input type="hidden" id="itemUrl" value="${show.url}" />
		<input type="hidden" id="title" value="${title}" />
		<input type="hidden" id="website" value="${show.website}" />
		<span class="mp_top"></span>
	    <span class="mp_bottom"></span>
	    <div class="mp_play_hulu" id="play_hulu" style="display:none">
		     <div class="mp_play_btnLink"><a href="${show.url}" target="_blank">Click to view this video on hulu.com</a></div>
		</div>
	    <iframe  id="play_iframe" src="${show.url}" width="100%" align="center" scrolling="no" height="620" frameborder="0"></iframe>
	</div>

	<#include "/include/footer.ftl">
	<#include "/video/pie/vdownloader.ftl">
</div>
</body>

<#include "/include/js.html">
<script type="text/javascript" src="${jsRoot}/video/play_index.js"></script>
</html>
-->